<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<head>
<!--META-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>INICIAR SESION</title>

<link rel="shortcut icon" type="image/png"
	href="/negosyscom/resources/images/logo.png" />

<!--STYLESHEETS-->
<link href="/negosyscom/resources/css/styleLogin.css" rel="stylesheet"
	type="text/css" />

<!--SCRIPTS-->
<script type="text/javascript"
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<!--Slider-in icons-->
<script type="text/javascript">
	$(document).ready(function() {
		$(".username").focus(function() {
			$(".user-icon").css("left", "-48px");
		});
		$(".username").blur(function() {
			$(".user-icon").css("left", "0px");
		});

		$(".password").focus(function() {
			$(".pass-icon").css("left", "-48px");
		});
		$(".password").blur(function() {
			$(".pass-icon").css("left", "0px");
		});
	});
</script>

</head>
<body>

	<!--WRAPPER-->
	<div id="wrapper">

		<!--SLIDE-IN ICONS-->
		<div class="user-icon"></div>
		<div class="pass-icon"></div>
		<!--END SLIDE-IN ICONS-->

		<!--LOGIN FORM-->
		<form action='${loginUrl}' method='post' class="login-form">

			<!--HEADER-->
			<div class="header" style="text-align: center;">
				<!--TITLE-->
				<h1>NEGOSYS</h1>
				<p>INICIAR SESION</p>
				<!--END TITLE-->
				<!--DESCRIPTION-->
				<!--END DESCRIPTION-->
			</div>
			<!--END HEADER-->

			<!--CONTENT-->
			<div class="content">
				<!--USERNAME-->
				<input type="text" id="username" name="username"
					title="El usuario es obligatorio" required="required"
					placeholder="Usuario" value='' class="input username" />
				<!--END USERNAME-->
				<!--PASSWORD-->
				<input type="password" id="password" name="password"
					title="La contraseña es obligatoria" required="required"
					placeholder="Contraseña" class="input password" />
				<!--END PASSWORD-->
			</div>
			<!--END CONTENT-->

			<!--FOOTER-->
			<div class="footer">
				<input type="hidden" name="${_csrf.parameterName}"
					value="${_csrf.token}" />
				<!--LOGIN BUTTON-->
				<input type="submit" name="submit" value="Entrar" class="button"
					style="position: relative; right: 65px; top: 6px;" />
				<!--END LOGIN BUTTON-->
			</div>
			<!--END FOOTER-->

		</form>
		<!--END LOGIN FORM-->
	</div>
	<!--END WRAPPER-->

	<!--GRADIENT-->
	<div class="gradient"></div>
	<!--END GRADIENT-->

</body>
</html>